<?php require_once $_SERVER['DOCUMENT_ROOT'] . '/phd/geral/uteis/imports.php'; ?>
<script>
    $(document).ready(function() {
        $('#example').dataTable({
            "ajax": "/phd/controller/listarSetor.php",
            "order": [[2,"asc"],[ 1, "asc" ]],            
            "scrollX": true,
            "columns": [
                {"data": "id_setor"},
                {"data": "nome_setor"},
                {"data": "prioridade_setor"},
                {"data": "atendimento_setor"},
                {"data": "responsavel_setor"},                
                {"data": "editar","bSortable": false},
                {"data": "ativo","bSortable": false}
            ]
        });
    });
</script>

<div class="container_form">   
    <h2>Setor</h2>
    <h4 style="cursor: pointer" onclick="carregar_opcao('/phd/view/cadastroSetor.php')">+ Novo Cadastro</h4>    
</div>
<br>
<table id="example" class="display" cellspacing="0" width="100%">
    <thead>
        <tr>
            <th>Id</th>
            <th>Nome</th>
            <th>Prioridade Atendimento</th>
            <th>Realiza Atendimento</th>
            <th>Responsavel</th>            
            <th></th>
            <th></th>
        </tr>
    </thead>
</table>